Skip to content

Upgrade to PHPUnit 12 and use attributes#291

Merged
OskarStark merged 4 commits intomasterfrom
phpunit-11-attributes
Dec 4, 2025
Merged

Upgrade to PHPUnit 12 and use attributes#291
OskarStark merged 4 commits intomasterfrom
phpunit-11-attributes

Conversation

@OskarStark
Copy link
Contributor

No description provided.

- Upgrade phpunit/phpunit from ^9.5 to ^11.5
- Update phpunit.xml.dist for PHPUnit 11 schema
- Convert @dataProvider annotations to #[DataProvider] attributes
- Convert @dataProvider with external class to #[DataProviderExternal]
- Replace deprecated setMethods() with onlyMethods()
- Replace deprecated withConsecutive() with willReturnCallback()
- Make data provider methods static as required by PHPUnit 11
@OskarStark OskarStark changed the title Upgrade PHPUnit to 11.5 and use attributes Upgrade to PHPUnit 12 and use attributes Dec 4, 2025
@OskarStark OskarStark merged commit 7f99077 into master Dec 4, 2025
4 checks passed
@OskarStark OskarStark deleted the phpunit-11-attributes branch December 4, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants